package cn.gson.boot.model.dao;

import cn.gson.boot.model.pojos.Wxguocheng;
import cn.gson.boot.model.pojos.Wxjiance;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;

public interface WxGuoChengDao extends CrudRepository<Wxguocheng,Integer> {

    //修改维修过程的进度
    @Transactional
    @Modifying(clearAutomatically = true)
    @Query(nativeQuery = true,value = "update wxguocheng set wx_zhuangtai = ?1 where gd_id=?2")
    public void updateweixiuguocheng(String gdJd,Integer gdId);
}
